package com.example.demo.mapper;


import com.example.demo.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface BookMapper {
    int insert(Book book);
    int updateById(Book book);
    int deleteById(Long id);
    int deleteBatchIds(@Param("ids") List<Integer> ids);
    List<Book> selectPage(@Param("offset") int offset, @Param("pageSize") int pageSize,
                          @Param("search1") String search1, @Param("search2") String search2, @Param("search3") String search3);
    int selectCount(@Param("search1") String search1, @Param("search2") String search2, @Param("search3") String search3);
    Long selectTotalCount();
}